<div class="row">
    <div class="col-md-12">
        <div class="card">
            <div class="card-header">
                <h3 class="card-title">桌子列表</h3></div>
            <!-- /.card-header -->
            <div class="card-body">
                <table class="table table-bordered text-center">
                    <tbody>
                    <!--表格标题 start-->
                    <tr>
                        <th>店铺名称</th>
                        <th>桌子名称</th>
                        <th>创建时间</th>
                        <th>控制</th>
                    </tr>
                    <!--表格标题 end-->
                    <?php foreach ($list as $list_one):?>
                        <tr>
                            <td><?=$list_one['mall_info']['name']?></td>
                            <td><?=$list_one['name']?></td>
                            <td><?=date('Y-m-d',$list_one['create_time'])?></td>
                            <td>
                                <button type="button" class="btn  btn-danger btn-sm" onclick="del_check('/index.php/back/desk-del/?id=<?=$list_one['id']?>')">删除</button>
                                <button type="button" class="btn  btn-primary btn-sm" onclick="location.href='/index.php/admin/desk-edit/?id=<?=$list_one['id']?>'">编辑</button>
                                <button type="button" class="btn  btn-success btn-sm" onclick="location.href='/index.php/admin/msg-list/?id=<?=$list_one['id']?>'">留言列表</button>
                                <a  class="btn  btn-primary btn-sm" href="<?=$list_one["code_url"]?>" download="桌面二维码.png">下载二维码</a>
                            </td>
                        </tr>
                    <?php endforeach;?>
                    </tbody>
                </table>
            </div>
            <!-- /.card-body -->
            <!--分页 start-->
            <?=$page_block?>
            <!--分页 end-->
        </div>
    </div>
</div>